package frame.options;

import java.awt.Dimension;

import javax.swing.JMenuBar;

import frame.MopraFrame;
import frame.options.physicalNetworks.PhysicalNetworksMenu;
import frame.options.simulation.SimulationMenu;
import frame.options.simulator.SimulatorMenu;
import frame.options.virtualNetworks.VirtualNetworksMenu;

@SuppressWarnings("serial")
public class Options extends JMenuBar
{
	private SimulatorMenu simulatorMenu;
	public SimulatorMenu getSimulatorMenu(){ return simulatorMenu; }
	public void setSimulatorMenu( SimulatorMenu simulatorMenu ){ this.simulatorMenu = simulatorMenu; }
	
	private PhysicalNetworksMenu physicalNetworksMenu;
	public PhysicalNetworksMenu getPhysicalNetworksMenu(){ return physicalNetworksMenu; }
	public void setPhysicalNetworksMenu( PhysicalNetworksMenu physicalNetworksMenu ){ this.physicalNetworksMenu = physicalNetworksMenu; }
	
	private VirtualNetworksMenu virtualNetworksMenu;
	public VirtualNetworksMenu getVirtualNetworksMenu(){ return virtualNetworksMenu; }
	public void setVirtualNetworksMenu( VirtualNetworksMenu virtualNetworksMenu ){ this.virtualNetworksMenu = virtualNetworksMenu; }
	
	private SimulationMenu simulationMenu;
	public SimulationMenu getSimulationMenu(){ return simulationMenu; }
	public void setSimulationMenu( SimulationMenu simulationMenu ){ this.simulationMenu = simulationMenu; }
	
	public Options( MopraFrame mopraFrame )
	{
		this.setSimulatorMenu( new SimulatorMenu( mopraFrame ) );
		this.setPhysicalNetworksMenu( new PhysicalNetworksMenu( mopraFrame ) );
		this.setVirtualNetworksMenu( new VirtualNetworksMenu( mopraFrame ) );
		this.setSimulationMenu( new SimulationMenu( mopraFrame ) );
				
		this.setPreferredSize( new Dimension( 1, 21 ) );
		this.add( this.getSimulatorMenu() );
		this.add( this.getPhysicalNetworksMenu() );
		this.add( this.getVirtualNetworksMenu() );
		this.add( this.getSimulationMenu() );
	}

}
